package com.example.demo.web.Controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class RouterController {
	
	@RequestMapping("/")
	public String getIndexPage() {
		return "index.html";
	}
	
	@RequestMapping("/index")
	public String getIndexPage2() {
		return "index.html";
	}
	
	@RequestMapping("/login")
	public String getLoginPage() {
		return "login.html";
	}
	
	@RequestMapping("/console")
	public String getConsole() {
		return "console.html";
	}

	@RequestMapping(value = "/usermanager")
    public String userManager(HttpServletRequest request ,HttpServletResponse response,HttpSession session){

        return "usermanager.html";
    }
	
	@RequestMapping(value = "/organization")
    public String organization(HttpServletRequest request ,HttpServletResponse response,HttpSession session){
        return "organization.html";
    }
    
    @RequestMapping(value = "/rolemanager")
    public String rolemanager(HttpServletRequest request ,HttpServletResponse response,HttpSession session){
        return "rolemanager.html";
    }
    
    @RequestMapping(value = "/rightmanager")
    public String rightmanager(HttpServletRequest request ,HttpServletResponse response,HttpSession session){
        return "rightmanager.html";
    }

    
    @RequestMapping(value = "/usermanagerlog")
    public String usermanagerlog(HttpServletRequest request ,HttpServletResponse response,HttpSession session){
        return "usermanagerlog.html";
    }
    
    @RequestMapping(value = "/usersyslog")
    public String usersyslog(HttpServletRequest request ,HttpServletResponse response,HttpSession session){
        return "usersyslog.html";
    }
	
	@RequestMapping(value = "/user_right_auth")
    public String user_right_auth(HttpServletRequest request ,HttpServletResponse response,HttpSession session){
        return "user_right_auth.html";
    }
    
    @RequestMapping(value = "/sysconfig")
    public String sysconfig(HttpServletRequest request ,HttpServletResponse response,HttpSession session){
        return "sysconfig.html";
    }
	
	@RequestMapping("/lockmanage")
	public String getLockmanager() {
		return "lockmanage.html";
	}
	
	@RequestMapping(value = "/lockmission")
    public String lockmission(HttpServletRequest request ,HttpServletResponse response,HttpSession session){
        return "lockmission.html";
    }  
	
	@RequestMapping(value = "/getlockstable")
    public String getlockstable(HttpServletRequest request ,HttpServletResponse response){
        return "lockselect.html";
    }
	
	@RequestMapping(value = "/keymanage")
    public String keymanage(HttpServletRequest request ,HttpServletResponse response){
        return "keymanage.html";
    }
	
	@RequestMapping(value = "/template_locklist")
    public String template_locklist(HttpServletRequest request ,HttpServletResponse response){
        return "template_locklist.html";
    }
    
    @RequestMapping(value = "/template_locklist_single")
    public String template_locklist_single(HttpServletRequest request ,HttpServletResponse response){
        return "template_locklist_single.html";
    }
    
    @RequestMapping(value = "/template_multilocklist")
    public String template_multilocklist(HttpServletRequest request ,HttpServletResponse response){
        return "template_multilocklist.html";
    }
    
    @RequestMapping(value = "/template_userlistByLock")
    public String template_userlistByLock(HttpServletRequest request ,HttpServletResponse response){
        return "template_userlistByLock.html";
    }
    
    @RequestMapping(value = "/template_userlist_single")
    public String template_userlist_single(HttpServletRequest request ,HttpServletResponse response){
        return "template_userlist_single.html";
    }
    
    @RequestMapping(value = "/template_mission_detail")
    public String template_mission_detail(HttpServletRequest request ,HttpServletResponse response){
        return "template_mission_detail.html";
    }
    
    @RequestMapping(value = "/userlist")
    public String userlist(HttpServletRequest request ,HttpServletResponse response){
        return "userlist.html";
    }
    
    @RequestMapping(value = "/lockofflog")
    public String lockofflog(HttpServletRequest request ,HttpServletResponse response){
        return "lockofflog.html";
    }
    
    @RequestMapping(value = "/allotmission")
    public String multilockmission(HttpServletRequest request ,HttpServletResponse response){
        return "allotmission.html";
    }
    
    @RequestMapping(value = "/locktransfer")
    public String locktransfer(HttpServletRequest request ,HttpServletResponse response){
        return "locktransfer.html";
    }
	
	@RequestMapping(value = "/getorgtree")
    public String orgtreeget(){
        return "orgtree.html";
    }
	
	@RequestMapping(value = "/openlog")
    public String openlog(HttpServletRequest request ,HttpServletResponse response){
        return "openlog.html";
    }

}
